// 桌子管理
import request from '@/utils/request'

// 桌子列表
export function listTables(query) {
  return request({
    url: '/table1/findAll',
    method: 'get',
    params: query
  })
}

// 搜索
export function searchTables(data) {
  return request({
    url: '/table1/searchAll',
    method: 'post',
    data
  })
}
// 删除
export function delteTables(query) {
  return request({
    url: '/table1/deleteById/',
    method: 'post',
    params: query
  })
}
// 添加
export function addTables(data) {
  return request({
    url: '/table1/add',
    method: 'post',
    data
  })
}
// update
export function updateTables(data) {
  return request({
    url: '/table1/updateById',
    method: 'post',
    data
  })
}
// 设置状态
export function setStateTables(id) {
  return request({
    url: '/table1/SetStateById',
    method: 'get',
    params: id
  })
}
